home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.inap.net!news1!ind-005-236-221
- From: dlmiller@iquest.net (Doug Miller)
- Subject: Re: How can I use huge || very small number?
- X-Nntp-Posting-Host: ind-005-236-221.iquest.net
- Message-ID: <Dp74E7.G6w@iquest.net>
- Sender: news@iquest.net (News Admin)
- Organization: IQuest Network Services
- X-Newsreader: News Xpress Version 1.0 Beta #2.1
- References: <315681F3.314D@blue.nowcom.co.kr> <4joh0l$jch@news.acns.nwu.edu>
- Date: Mon, 1 Apr 1996 18:25:09 GMT
-
- muzaffar@casbah.acns.nwu.edu (Usman Muzaffar) wrote:
- >In article <315681F3.314D@blue.nowcom.co.kr>,
- >whoever <whatever@blue.nowcom.co.kr> wrote:
- >>may be it is FAQ but...
- >>how can I compute 10000! or 0.12345......
- >
- >10000! is a very, very big number.
- >I'm not sure it's even representable by standard IEEE fp notation.
- >Any have that formula? 2*pi*e something or another.
- >
-
- *Severely* off-topic, but since you asked for it...It's known as Stirling's Approximation.
- Reference: CRC Standard Mathematical Tables (12th Ed.), pg. 357.
-
- n! = exp (-n) * pow (n,n) * sqrt ( 2 * pi * n) approximately.
-
- And yes, that is a very very big number. To a *very* rough approximation, 1E5000.
-